package com.jh.pattern.singleton.lazy;

/**
 * @author JH_Wong
 * @projectName newforward
 * @title LazySingletonTest.java
 * @package com.jh.pattern.singleton.lazy
 * @description 测试多线程获取懒汉单例
 * @date 2019-05-10 17:33
 */
public class LazySingletonTest {

    public static void main(String[] args) {

        System.out.println("Begin -----------------");

        Thread t1 = new Thread(new ExectorThread(), "t1");
        Thread t2 = new Thread(new ExectorThread(), "t2");

        t1.start();
        t2.start();

        System.out.println("End --------------------");

    }

}
